API Documentation
ScriptManager.h
1 // ScriptManager.h
3 //
5 
6 namespace nkScripts
7 {
13  class ScriptManager final : public nkCommon::SingletonClass<ScriptManager>
14  {
15  public :
16 
32  Script* get (const nkMemory::StringView& name) ;
41  Script* getByIndex (unsigned int id) ;
48  void rename (const nkMemory::StringView& currentName, const nkMemory::StringView& newName) ;
54  void erase (const nkMemory::StringView& name) ;
55  } ;
56 }
nkScripts::ScriptManager::rename
void rename(const nkMemory::StringView &currentName, const nkMemory::StringView &newName)
nkScripts
Encompasses all API of component NilkinsScripts.
Definition: Environment.h:7
nkScripts::Script
Holds all information for a script.
Definition: Script.h:14
nkScripts::ScriptManager::getByIndex
Script * getByIndex(unsigned int id)
nkScripts::ScriptManager::erase
void erase(const nkMemory::StringView &name)
nkScripts::ScriptManager
Manages the scripts available in the component.
Definition: ScriptManager.h:14
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkScripts::ScriptManager::get
Script * get(const nkMemory::StringView &name)
nkScripts::ScriptManager::createOrRetrieve
Script * createOrRetrieve(const nkMemory::StringView &name)